<!DOCTYPE html>
<html lang="en">
  <head>
      <meta charset="UTF-8">
      <title>练习3</title>
    <script type="text/javascript">
      let name = "周星驰";
      let job = "演员";

      //根据给出的数据，用ES6的方式，构建对象，并提供方法可以输出信息
      let person = {
        name:name,
        job:job,
        info(){
          console.log(this.name, this.job);
        }
      }
      person.info();
    </script>
  </head>
  <body>

  </body>
</html>